package com.bao.shop.service;

import com.bao.shop.entity.Goods;
import com.bao.shop.entity.User;

import java.util.ArrayList;
import java.util.Scanner;

public interface GoodsService {
    ArrayList<Goods> GOODS=new ArrayList<>();
    Scanner INPUT=new Scanner(System.in);
    //修改商品库存
    void updateStock(Goods goods,Integer num);

    //删除商品信息-->库存为0时
    void removeGoods(Goods goods);

    //购买商品
    void buyGoods(User user);

    //查询指定商品
    Goods findGoods(String id);

    //打印商品信息
    void printGoods();


}
